<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.kylin.module.shop.orm.Product,com.kylin.common.paginate.DisplayPage,com.kylin.common.Constants" %>
<%@ include file="/common/include/includeHeader.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
    <div class="in_box">
        <%
      		if(request.getAttribute("newProductList") != null && !request.getAttribute("newProductList").equals(""))
      		{
      			DisplayPage dispage = (DisplayPage)request.getAttribute("newProductList");
      			for(int i=0;i<dispage.getList().size();i++)
      			{
      				Product obj = (Product)dispage.getList().get(i);
      				if( i%3 == 0)
      				out.println("<div class='cleanP'></div>");
       %>
     <div class="in_box_l">
        <a href="/module/shop/_nodeco/shop.do?CMD=productDetail&id=<%=obj.getId() %>" target="_blank"><img src="/fileOutServlet?imgType=<%=Constants.IMG_PRODUCT%>&imgurl=<%=obj.getImgurl() %>"  width="77" height="77" class="imgborder"></a><br>
        <a href="/module/shop/_nodeco/shop.do?CMD=productDetail&id=<%=obj.getId() %>" target="_blank"><%=JspHelper.substring(obj.getName(),20,"") %></a>
     </div>     
         <% 
               			}
      		}	
      		else
      		{
      			out.print("没有产品");
      		}
         %>
    </div>